<%--
  Created by IntelliJ IDEA.
  User: hbl
  Date: 2017/6/13
  Time: 11:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title></title>
</head>
<link href="setting.css" rel="stylesheet">
<style>
    .username{
        width: 400px;
        height: 80px;
        border-bottom: 1px solid gainsboro;
        font-size: 20px;
        line-height: 90px;
    }
    form{
        width: 400px;
    }
    input{
        border-top: none;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid gainsboro;
        width: 200px;
    }
    .button{
        margin-left: 20px;
        margin-top: 20px;
        border-radius: 10px;
        background: cadetblue;
    }
    .imgUpdate{
        position: relative;
        width: 350px;
        float: right;
        margin-top: -268px;
    }
    #form{
        margin-top: 30px;
    }
</style>
<body>
    <div class="username">
        ${student.username}
    </div>

    <form action="/Student/modify" method="post"  target="nm_iframe">
        <p>学号: ${student.usernumber}</p>
        <p>昵称： <input type="text" value="${student.usernickname}" name="usernickname"></p>
        <p> 签名： <c:if test="${empty student.sign}"><input type="text" value="这位同学很懒，木有签名的说～" name="sign"></c:if>
        <c:if test="${!empty student.sign}"><input type="text" value="${student.sign}" name="sign"></c:if> <br/></p>
        <input type="submit" value="点击修改" class="button">
    </form>
    <iframe name="nm_iframe" style="display:none;"></iframe>
    <div class="imgUpdate">
        <div class="username">
            修改头像
        </div>
        <form action="/Image/set" method="post" enctype="multipart/form-data" id="form" target="nm_iframe">
          <a>  <input type="file" name="file" id="doc"></a>
            <a>  <input type="submit" value="上传" class="button"></a>
        </form>
        <iframe  name="nm_iframe" style="display:none;"></iframe>
        <div id="dd" style=" width:50px"></div>
    </div>

</body>
</html>
